package com.example.bookmanage.service;

import com.example.bookmanage.pojo.Book;
import com.example.bookmanage.util.JsonResult;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;


public interface BookService {
    //查询所有的书籍 并且返回一个合法的json格式
    JsonResult<Book> findData(int page,int limit,String time1,String time2);
    //插入一张书籍
    void insertBook(Book book);
    //删除一张书籍 根据id来执行
    void delete(Integer id);
    //查询书籍的本书
    int CountAllBook();
    JsonResult<Book> queryBookByName(String bookName);
    int CountBookByTime(String time1,String time2);
    boolean updateBook(Book book);
}
